package com.wanxi.service;

import com.wanxi.dao.ImageShowDao;
import com.wanxi.dao.NavDao;
import com.wanxi.dao.TeacherDao;
import com.wanxi.model.ImageShowModel;
import com.wanxi.model.NavModel;
import com.wanxi.model.TeacherModel;

import java.util.List;

public class IndexService {
//    获取所有头部标签
    public List<NavModel> getNavModelList() {
        NavDao indexDao=new NavDao();
        return indexDao.getAllNav();
    }
//    获取教师列表
    public List<TeacherModel> getTeacherList() {
        TeacherDao teacherDao=new TeacherDao();
        return teacherDao.getAllTeacher();
    }
//    获取教师对应图片信息
    public List<ImageShowModel> getImageShowList() {
        ImageShowDao imageShowDao=new ImageShowDao();
        return imageShowDao.getTeacherImage();
    }
}
